var config = require('../../config');
var utilController = require('./contrl');
var filter = require('../../framework/filter');
var commonController = require('./contrl');

exports = module.exports = function(server) {
    server.get(config.api_version  + 'themeOpt/queryTheme', filter.authorize, commonController.queryTheme);
    server.get(config.api_version  + 'theme/:id', commonController.findThemeById);

    server.get(config.api_version  + 'templateOpt/queryTemplateByComponent', filter.authorize, commonController.queryTemplateByComponent);
    server.get(config.api_version  + 'template', filter.authorize, commonController.findAllTemplates);
    server.get(config.api_version  + 'template/:id', commonController.findTemplateById);

};
